/**
 * Created by zhaoyanzhi on 16-9-19.
 */
var app = angular.module('myApp', ['ngRoute']);
app.run(function(){
    var APP_ID = 'RaXOd37qSYs8fKCN82nbC9zd-gzGzoHsz';
    var APP_KEY = 'SMJDrjpJOmuyEuTXjm5lW2BM';
    AV.init({
        appId: APP_ID,
        appKey: APP_KEY
    })});
app.config(['$routeProvider',function($routeProvider){
    $routeProvider
        .when("/",{
            templateUrl: "../view/homePage.html",
            controller:"homePage"
        })
        .when("/landingPage",{
            templateUrl: "../view/landingPage.html",
            controller:"landingPage"
        })
        .when("/registrationPage",{
            templateUrl: "../view/registrationPage.html",
            controller:"registrationPage"
        })
        .when("/productListPage",{
            templateUrl: "../view/productListPage.html",
            controller:"productListPage"
        })
        .when("/shoppingCartPage",{
            templateUrl: "../view/shoppingCartPage.html",
            controller:"shoppingCartPage"
        })
        .when("/paymentPage",{
            templateUrl: "../view/paymentPage.html",
            controller:"paymentPage"
        })
        .otherwise({redirectTo:'/'})
}]);